<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  <title>投资游戏</title>
  <link rel="stylesheet" href="./css/index.css">
<style>
	body {
		background-color: #fff;
	}
</style>
</head>
<body>
<div id="app">

</div>
</body>

<script src="./js/vue.min.js"></script>
<script src="./js/vant.min.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/pouchdb-8.0.1.min.js"></script>
<script type="text/javascript">
	var db1 = new PouchDB('my_database');
	
	

	var db = new PouchDB('dbname');

	db.put({
	  _id: 'dave@gmail.com',
	  name: 'David',
	  age: 69
	}).then(function(response){
		console.log(response);
	}).catch(function(err){
		console.log(err);
	});

	//db.changes().on('change', function() {
	  //console.log('Ch-Ch-Changes');
	//});

	
	db.put({
	  _id: '2dave@gmail.com',
	  name: 'David22',
	  age: 77
	}).then(function(response){
		console.log(response);
	}).catch(function(err){
		console.log(err);
	});
	
	//db.replicate.to('http://localhost:8080/mydb');
	db.get('dave@gmail.com').then(function(doc){
		console.log(doc);
	}).catch(function(err){
		console.log(err);
	});

</script>
</html>